/*
 * ByteBuffer.h
 *
 *  Created on: 18/06/2013
 *      Author: juan
 */

#ifndef BYTEBUFFER_H_
#define BYTEBUFFER_H_
#include <cstdlib>
#include <math.h>
#include <iostream>
#include "../../Utilidades/Constantes.h"

using namespace std;

class ByteBuffer {
public:
	ByteBuffer();
	virtual ~ByteBuffer();
	bool escribirBit(bool i);
	char * getBuffer();
	int getLongitud();
	void terminarCompresion();
private:
	char * buffer;
	int longitud;
	int indice;
	int byte;
	int indice_buffer;
};

#endif /* BYTEBUFFER_H_ */
